from flask import Flask, make_response
from flask import render_template

app = Flask(__name__, template_folder='../templates')


@app.route('/test')
def test():
    return 'test';


@app.errorhandler(404)
def not_found(error):
    resp = make_response(render_template('error.html'), 404)
    resp.headers['X-Something'] = 'A value'
    return resp
    # return render_template('error.html'), 404


if __name__ == '__main__':
    app.run();
